package top.lfyao.designpattern.details.builder;

public class ConcreteBuilder2 extends Builder {
    private Product product=new Product();
    @Override
    public void buildPartHead() {
        product.add("头2");
    }

    @Override
    public void buildPartBody() {
        product.add("身体2");
    }

    @Override
    public void buildPartArmLeft() {
        product.add("左手2");
    }

    @Override
    public void buildPartArmRight() {
        product.add("右手2");
    }

    @Override
    public void buildPartLegLeft() {
        product.add("左腿2");
    }

    @Override
    public void buildPartLegRight() {
        product.add("右腿2");
    }

    @Override
    public Product getBuildResult() {
        return product;
    }
}
